<?php
class Members_directory_model extends CI_Model {
    public function __construct() {
        $this->load->database();
    }
    
    public function set_members_directory($datos) {
        $this->db->insert('members_directory', $datos);
    }
    
    public function get_members_directory($idioma) {
        $query = $this->db->query("SELECT *
                                    FROM
                                        members_directory
                                    WHERE
                                        idioma = '$idioma'");
        return $query->result_array();
    }
    
    public function delete_members_directory($idmembers) {
        $this->db->delete('members_directory', array('idmembers' => $idmembers));
    }
}
?>
